package gao.xiaolei.entity;

import lombok.Data;
import javax.persistence.*;

@Entity
@Data
public class TestRunLogStep extends TestStepBase{

    @Column(columnDefinition = "char(32)")
    private String testRunLog;//所属的测试运行记录

    @Column
    private Integer isPass;//该测试步骤是否执行成功，0-不成功，1-成功，-1未选择

    @Column
    private String reasonId;//用于储存判断执行是否成功的理由的Id,用于定位文件

    @Transient
    private String reason;//用于储存判断执行是否成功的理由，但是不保存在数据库

    public TestRunLogStep(String id, String name, String frontNode, String backNode, String expectedResult, String testRunLog, Integer isPass, String reasonId, String reason) {
        super(id, name, frontNode, backNode, expectedResult);
        this.testRunLog = testRunLog;
        this.isPass = isPass;
        this.reasonId = reasonId;
        this.reason = reason;
    }

    public TestRunLogStep(String id, String name, String frontNode, String backNode, String expectedResult, String testRunLog, Integer isPass, String reasonId, String reason,String description) {
        super(id, name, frontNode, backNode, expectedResult);
        this.testRunLog = testRunLog;
        this.isPass = isPass;
        this.reasonId = reasonId;
        this.reason = reason;
        this.description=description;
    }

    public TestRunLogStep() {
    }
}
